package com.hjl.sr.remoting;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ServletEncryptContext implements EncryptContext {
	
	private HttpServletRequest request;
	
	private HttpServletResponse response;
	
	public ServletEncryptContext(HttpServletRequest request, HttpServletResponse response) {
		super();
		this.request = request;
		this.response = response;
	}

	public String getHeader(String name) {
		return request.getHeader(name);
	}

	public void addHeader(String name, String value) {
		response.addHeader(name, value);
	}

}
